# coding: utf-8
# author: t_wolf

from framework.commons import *

# 定义框架内常量
DEFINE_VARS = {
    'DB_DEFINE': {
        'SESSION_DB': 0,
        'USEFUL_DB': 1,
        'OTHER_DB1': 2,
        'OTHER_DB2': 3,
        'OTHER_DB3': 4,
        'OTHER_DB4': 5,
    },
    'EXIT_CODE_DEFILE': {
        'EXIT_NORMAL': 0,
        'EXIT_BY_ERROR_CONFIGS': 10,
        'EXIT_BY_INTERNAL_ERROR': 11,
        'EXIT_BY_WRONG_ARGUMENTS': 12,
        'EXIT_BY_UNKNOWN_ERROR': 17,
    }
}

# 定义运行时需要的全局变量
VARIABLES = {
    "LIMIT_ITER": 10000,
}

FRAME_DEFINE = storager(DEFINE_VARS)
FRAME_DEFINE.MAIN_PROCESS = False
SHARE_SPACE = storage()
SHARE_SPACE.thread = storage()
SHARE_SPACE.process = None
